package com.skybao.controller;

import com.skybao.feign2.FeignClient2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hystrix")
public class HystrixController {

    @Autowired
    private FeignClient2 feignClient2;
    @GetMapping("/test")
    public void test(){
        feignClient2.test();
    }
    @GetMapping("/index")
    public String index(){
        return feignClient2.index();
    }
}
